/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 说明：
 * Entity Name 入/出库单明细
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TStockInOutDetail")
public class TStockInOutDetail implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private int id;//入/出库单编号
	
	private int Num;//商品数据INTEGER
	
	private TStockInOut TStockInOut;//入/出库单
	
	private TCommodity TCommodity;//商品
	
	@Id
	@GeneratedValue
	@Column(name = "id")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "Num")
	public int getNum() {
		return Num;
	}

	

	public void setNum(int num) {
		Num = num;
	}

	@ManyToOne
	@JoinColumn(name="InOutID")
	public TStockInOut getTStockInOut() {
		return TStockInOut;
	}

	public void setTStockInOut(TStockInOut tStockInOut) {
		TStockInOut = tStockInOut;
	}
	@ManyToOne
	@JoinColumn(name="CommodityID")
	public TCommodity getTCommodity() {
		return TCommodity;
	}

	public void setTCommodity(TCommodity tCommodity) {
		TCommodity = tCommodity;
	}
}
